<template>
  <v-app-bar flat>
    <v-app-bar-title>
      <div class="flex justify-space-between">
        <div class="">
          <v-icon icon="mdi-vuetify"/>
          Demo
        </div>
        <div class="ml-8">
          <btn-logout @click="toLogin" />
<!--          <v-btn @click="toLogin" rounded="xl" prepend-icon="mdi-logout"> 退出登录</v-btn>-->
        </div>
      </div>
    </v-app-bar-title>
  </v-app-bar>
</template>

<script setup>
//

import router from "@/router";
import BtnLogout from "@/components/button/BtnLogout.vue";

const toLogin = ()=>{
  router.push({
    path:'/login',
  })
}
</script>
